/**
 * 
 */
package com.swim.settlementapply.entity;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * 结算申请明细表Entity
 * @author 刘军武
 * @version 2021-04-08
 */
@Table(name="t_settlement_apply_item", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="settlement_apply_id", attrName="settlementApplyId", label="结算申请表id"),
		@Column(name="order_num", attrName="orderNum", label="订单号"),
		@Column(name="order_money", attrName="orderMoney", label="订单金额"),
		@Column(name="settlement_type", attrName="settlementType", label="结算类型"),
		@Column(name="settlement_money", attrName="settlementMoney", label="结算金额"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class SettlementApplyItem extends DataEntity<SettlementApplyItem> {
	
	private static final long serialVersionUID = 1L;
	private String settlementApplyId;		// 结算申请表id
	private String orderNum;		// 订单号
	private Double orderMoney;		// 订单金额
	private String settlementType;		// 结算类型
	private Double settlementMoney;		// 结算金额
	
	public SettlementApplyItem() {
		this(null);
	}

	public SettlementApplyItem(String id){
		super(id);
	}
	
	@NotBlank(message="结算申请表id不能为空")
	@Length(min=0, max=64, message="结算申请表id长度不能超过 64 个字符")
	public String getSettlementApplyId() {
		return settlementApplyId;
	}

	public void setSettlementApplyId(String settlementApplyId) {
		this.settlementApplyId = settlementApplyId;
	}
	
	@NotBlank(message="订单号不能为空")
	@Length(min=0, max=20, message="订单号长度不能超过 20 个字符")
	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
	
	@NotNull(message="订单金额不能为空")
	public Double getOrderMoney() {
		return orderMoney;
	}

	public void setOrderMoney(Double orderMoney) {
		this.orderMoney = orderMoney;
	}
	
	@NotBlank(message="结算类型不能为空")
	@Length(min=0, max=10, message="结算类型长度不能超过 10 个字符")
	public String getSettlementType() {
		return settlementType;
	}

	public void setSettlementType(String settlementType) {
		this.settlementType = settlementType;
	}
	
	@NotNull(message="结算金额不能为空")
	public Double getSettlementMoney() {
		return settlementMoney;
	}

	public void setSettlementMoney(Double settlementMoney) {
		this.settlementMoney = settlementMoney;
	}
	
}